(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.MessagesRoutes = (function(_super) {

    __extends(MessagesRoutes, _super);

    function MessagesRoutes() {
      return MessagesRoutes.__super__.constructor.apply(this, arguments);
    }

    MessagesRoutes.prototype.routes = {
      "Messages/UserListing*path": "UsersListing",
      "Messages/MessageListing*path": "MessageListing",
      "Messages/AddMessage*path": "AddMessage"
    };

    MessagesRoutes.prototype.UsersListing = function(path) {
      var model, view;
      model = new MessagesModel();
      return view = new MessagesView({
        model: model
      });
    };

    MessagesRoutes.prototype.MessageListing = function(path) {
      var model, view;
      model = new MyMessageListingModel();
      model.set("SenderId", Url.GetParameterByName("SenderId"));
      return view = new MyMessageListingView({
        model: model
      });
    };

    return MessagesRoutes;

  })(Backbone.Router);

}).call(this);
